package com.example.roadeyeserver.controller;

import com.example.roadeyeserver.entity.AMjHxl;
import com.example.roadeyeserver.result.Result;
import com.example.roadeyeserver.service.AMjHxlService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("aMjHxl")
public class AMjHxlController {

    @Resource
    private AMjHxlService aMjHxlService;

    @PostMapping("getAll")
    public Result<List<AMjHxl>> getAll() {
        return aMjHxlService.getAll();
    }

}
